package com.typhoon.springboot_demo1.util;

import org.objenesis.Objenesis;
import org.objenesis.ObjenesisStd;
import org.springside.modules.utils.base.BooleanUtil;

import com.alibaba.fastjson.JSONObject;
import com.typhoon.springboot_demo1.entity.User;

public class TestDemo1 {
	
	private static Objenesis objenesis = new ObjenesisStd(true);

	public static void main(String[] args) {
//		long begin2 = System.nanoTime();
//		Boolean.parseBoolean("true");
//		long end2 = System.nanoTime();
//		System.out.println(end2 - begin2);
//
//		long begin1 = System.nanoTime();
//		BooleanUtil.toBoolean("true");
//		long end1 = System.nanoTime();
//		System.out.println(end1 - begin1);
		
		User u = objenesis.newInstance(User.class);
		System.out.println(JSONObject.toJSONString(u));
		
	}

}
